<template>
	<view v-if="show == true" class="unio2o-coupon-role-alert">
		<view  @click="closed()" class="bg"></view>
		<view class="alert-div" :class="show ? 'animated fast zoomInUp':''">
			<view class="alert-main pd40 bg-w bdr16">
				<uni-icons type="close" size="26" @click="closed()"></uni-icons>
				<view class="text-center pt40 ft18 ftw600 text-default">优惠券使用说明</view>
				<view class="mt40 ft16 text-info">
					购买套餐抵扣
				</view>
				<view class="mt20 ft14 text-notice">
					优惠券线上购买套餐时作为抵扣
				</view>
				<view class="mt40 ft16 text-info">
					商户线下核销使用
				</view>
				<view class="mt20 ft14 text-notice">
					优惠券线下出示二维码
				</view>
				<view class="mt40 ft16 text-info">
					优惠买单使用
				</view>
				<view class="mt20 ft14 text-notice pb30">
					买单抵扣券买单时使用
				</view>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default{
		props:{
			show:{
				type:Boolean,
				default:false
			}
		},
		data(){
			return {
				
			}
		},methods:{
			closed(){
				this.$emit('closed',true);
			}
		}
	}
</script>

<style>
	.unio2o-coupon-role-alert{
		width: 100%;
		height: 100vh;
		z-index: 400;
		position: fixed;
		left: 0;
		top: 0;
		
	}
	
	.unio2o-coupon-role-alert .bg{
		position: fixed;
		width: 100%;
		height: 100vh;
		background: rgba(0,0,0,.3);
		left: 0;
		top: 0;
		z-index: 401;
	}
	
	.unio2o-coupon-role-alert .alert-div{
		position: fixed;
		width: 630rpx;
		left: calc(50% - 315rpx);
		top: 50%;
		transform: translateY(-50%);
		z-index: 402;
	}
	.unio2o-coupon-role-alert .alert-main{
		position: relative;
		width: 100%;
	}
	.unio2o-coupon-role-alert .alert-img{
		position: absolute;
		width: 120rpx;
		height: 120rpx;
		left: calc(50% - 60rpx);
		top: -60rpx;
	}
	.unio2o-coupon-role-alert .closed-img{
		position: absolute;
		width: 88rpx;
		height: 88rpx;
		right: -44rpx;
		top: -44rpx;
	}
</style>